    //初始化相关元素高度
    function init(){
        $("body").height($(window).height());
        $("#left").height($(window).height()-183);
        $("#right_main").height($(window).height()-188);
		height_li=$(".left_nav li .left_nav_title").height() * $(".left_nav li").length;
		$(".left_list_nr").height( $("#left").height() - height_li -130 );
    }
    $(function(){
        init();
        $(window).resize(function(){
            init();
        });
    });
	
//加载右侧内容
$(document).ready(function(){ 
$("#right_content").load("right.html"); 
}); 
//临时 右边嵌套 效果
function change(url){
	$.get(url,{},function(data){
		$("#right_content").html(data);
	});
}
//头部导航
$(function(){
 $(".nav_news li").hover(function(){
   $(".nav_news li.active").removeClass("active");
   $("#btn_block .nav_tab").removeClass("btn_block");
   var index = $(this).index();
   $("#btn_block .nav_tab").eq(index).addClass("btn_block");
   $(this).addClass("active");
 })
})

//警告弹窗
Command: toastr[warning]("Hi, welcome to Inspinia. This is example of Toastr notification box.")
Command: toastr[error]("Hi, welcome to Inspinia. This is example of Toastr notification box.")
toastr.options = {
  "closeButton": true,
  "debug": true,
  "progressBar": false,
  "positionClass": "toast-bottom-right",
  "showDuration": "400",
  "hideDuration": "1000",
  "timeOut": "7000",
  "extendedTimeOut": "1000",
  "showEasing": "swing",
  "hideEasing": "linear",
  "showMethod": "fadeIn",
  "hideMethod": "fadeOut"
}





